package com.zy.cat.entity.game;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;

import com.zy.cat.entity.primary.TrunDrawExtraRewardInfoPrimary;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫大转盘额外奖励实体类
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_trun_draw_extra_reward", indexes = {
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "code", columnList = "code")})
@Data
@AllArgsConstructor
@NoArgsConstructor
@IdClass(TrunDrawExtraRewardInfoPrimary.class)
@ApiModel("9趣猫大转盘额外奖励实体类")
public class TrunDrawExtraRewardInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2583120016354339881L;

	@Id
	@Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '用户账号ID'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Id
	@Column(columnDefinition = "CHAR(32) NOT NULL  COMMENT '额外奖励key'")
	@ApiModelProperty(value = "额外奖励key", example = "5")
	private String code;
	
	@Column(columnDefinition = "INT(2) DEFAULT '-1' COMMENT '领取状态，（0.未领取、1.已领取）'")
	@ApiModelProperty(value = "领取状态，（-1.未达到指定抽奖次数、0.未领取、1.已领取）", example = "0")
	private int rstatus=-1;
	
	@Column(name = "bean_num",columnDefinition = "BIGINT(10) DEFAULT '0' COMMENT '现金豆数'")
	@ApiModelProperty(value = "现金豆数", example = "1")
	private long beanNum=0;
	
	@Column(columnDefinition = "VARCHAR(30) NOT NULL  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22")
	private String ctime;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 10:10:10")
	private String ltime;

	public TrunDrawExtraRewardInfo(String pid) {
		super();
		this.pid = pid;
	}
	
	
}
